<div class="CartWrap">
<div class="FormWrap ">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
            <col class="span-auto"></col>
            <col class="span-5"></col>
            <col class="span-4 "></col>
  <tr>
    <td><h4 class="fontcolorRed "><{t}>订单编号：<{/t}><{$order.order_id}><{if $order.status=='finish'}><label style="color:#f00;"><{t}>（已完成）<{/t}></label><{elseif $order.status=='dead'}><label style="color:#f00;"><{t}>（已作废）<{/t}></label><{/if}></h4></td>
    <td><{t}>下单日期：<{/t}><{$order.acttime|cdate:FDATE_STIME}></td>
    <td><{t}>状态：<{/t}><{if $order.pay_status==0}><{t}>未付款<{/t}><{elseif $order.pay_status==1}><{t}>已付款<{/t}><{elseif $order.pay_status==2}><{t}>已付款至担保方<{/t}><{elseif $order.pay_status==3}><{t}>部分付款<{/t}><{elseif $order.pay_status==4}><{t}>部分退款<{/t}><{elseif $order.pay_status==5}><{t}>已退款<{/t}><{/if}>
  [<{if $order.ship_status==0}><{t}>未发货<{/t}><{elseif $order.ship_status==1}><{t}>已发货<{/t}><{elseif $order.ship_status==2}><{t}>部分发货<{/t}><{elseif $order.ship_status==3}><{t}>部分退货<{/t}><{elseif $order.ship_status==4}><{t}>已退货<{/t}><{/if}>]</td>
  </tr>
</table>


</div>
<div class="FormWrap division ">
<{if count($order.order_items) > 0 || count($order.gifts) > 0 || count($order.extends)}>

<{if count($order.order_items) > 0}>
  <h4 class="title-bg"><{t}>购买的商品<{/t}></h4>
<{/if}>

<table width="100%" cellpadding="3" cellspacing="0" class="gridlist">
 
            <col class="span-9"></col>
            <col class="span-2"></col>
            <col class="span-2"></col>
            <col class="span-3"></col>
            <col class="span-2"></col>
  <thead>
  <tr>
   
        <th><{t}>商品名称<{/t}></th>
        <th><{t}>商品积分<{/t}></th>
        <th><{t}>价格<{/t}></th>
        <th><{t}>数量<{/t}></th>
        <th><{t}>小计<{/t}></th>
      </tr>
  </thead>
  <tbody>
  <{foreach from=$order.order_items item="item" key="key"}>
  <tr>
    <td>
	<dl>
	<dt>
      <div class='product-list-img' isrc="<{$item.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{$item.link_url}>' style='width:50px;height:50px; margin:0 auto'>
        <img src='<{$res_url}>/loading.gif'/>
      </div>
	  </dt>
	  <dd>
    <{if $item.link_url}><a href="<{$item.link_url}>" target="_blank"><{/if}>
        <{$item.name}>
      <{foreach from=$item.minfo item=minfo key=name}>
          <br><{$minfo.label}>：<{$minfo.value}>
          <{/foreach}>
	<{if $item.link_url}></a><{/if}>
	  </dd>
	  </dl>
  </td>
    <td align="center" ><{if $item.score}><{$item.score}><{else}>0<{/if}>&nbsp;</td>
    <td align="center"  class="point"><{$item.price|cur_odr:$order.currency}></td>
    <td align="center"><{$item.quantity}></td>
    <td><{$item.amount|cur_odr:$order.currency}></td>
  </tr>
  <{if $item.adjunct}>
        
        	
			
        		<!-- <div style="padding-left:50px; border-bottom:1px solid #E8E8E8; background:#F4F4F4; font-weight:bold; text-align:left"><{t}>商品配件<{/t}></div><table  border="0" align="center"cellpadding="0" width="100%" cellspacing="0" style=" background:#FBFBFB" > -->
        		<{foreach from=$item.adjunct item=ajuncts name="ajunctsItem"}>  
				<tr>
				<td >
        			<dl style="margin-left:30px"><dt>
							<div class='product-list-img' isrc="<{$ajuncts.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{$ajuncts.link_url}>' style='width:50px;height:50px; margin:0 auto'>
						        <img src='<{$res_url}>/loading.gif'/>
					      	</div></dt>
						
							<dd><{if $ajuncts.link_url}><a href="<{$ajuncts.link_url}>" target="_blank"><{/if}>
							        <{$ajuncts.name}>
							      <{foreach from=$ajuncts.minfo item=minfo key=name}>
							          <br><{$minfo.label}>：<{$minfo.value}>
							          <{/foreach}>
					      	<{if $ajuncts.link_url}></a><{/if}></dd></dl>
				          </td>
				          <td style="border:none;"><{if $ajuncts.score}><{$ajuncts.score}><{else}>0<{/if}>&nbsp;</td>
				          <td class="Colamount"  style="border:none;" align="center"><{$ajuncts.price|cur_odr:$order.currency}></td>
						  <td class="Colamount"  style="border:none;" align="center"><{$ajuncts.quantity}></td>
						  <td class="Colamount"  style="border:none;" align="center"><{$ajuncts.amount|cur_odr:$order.currency}></td>
        			</tr>
        		<{/foreach}>
				
        		

        <{/if}>
        <{if $item.gifts}>
        
         				
						<{foreach from=$item.gifts item=gifts name="giftsItem"}> 
						<tr>
<td style="border:none; ">						
						<dl style="margin-left:30px"><dt>
						<div class='product-list-img' isrc="<{$gifts.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{$gifts.link_url}>' style='width:50px;height:50px; margin:0 auto'>
						        <img src='<{$res_url}>/loading.gif'/>
					      	</div></dt>
						<dd>
							<{if $gifts.link_url}><a href="<{$gifts.link_url}>" target="_blank"><{/if}>
							        <{$gifts.name}>
							      <{foreach from=$gifts.minfo item=minfo key=name}>
							          <br><{$minfo.label}>：<{$minfo.value}>
							          <{/foreach}>
					      	<{if $gifts.link_url}></a><{/if}></dd></dl>
				          </td>
				          <td style="border:none;" align="center"><{if $gifts.score}><{$gifts.score}><{else}>0<{/if}>&nbsp;</td>
				          <td class="Colamount" style="border:none;" align="center"><{*$gifts.price|cur_odr:$order.currency*}><{t}>商品赠送<{/t}></td>
						  <td class="Colamount"  style="border:none;" align="center"><{$gifts.quantity}></td>
						  <td class="Colamount"  style="border:none;" align="center"><{$gifts.amount|cur_odr:$order.currency}></td>
        			</tr>
        		<{/foreach}>

        <{/if}>
  <{/foreach}>
  
	<{if $order.gifts}>
        
        		<!--<div style=" border-bottom:1px solid #ddd;font-weight:bold; background:#F4F4F4; padding-left:50px;text-align:left"><{t}>赠品<{/t}></div>-->
        		
                <{foreach from=$order.gifts item=item_gifts name="giftsItem"}>        		
        		
        			<tr>
        				<td>
						<dl>
						<dt>
						<div class='product-list-img' isrc="<{$item_gifts.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{$item_gifts.link_url}>' style='width:50px;height:50px; margin:0 auto'>
						        <img src='<{$res_url}>/loading.gif'/>
					      	</div>
						</dt>
						<dd>
							<{if $item_gifts.link_url}><a href="<{$item_gifts.link_url}>" target="_blank"><{/if}>
							        <{$item_gifts.name}>
							      <{foreach from=$item_gifts.minfo item=minfo key=name}>
							          <br><{$minfo.label}>：<{$minfo.value}>
							          <{/foreach}>
							      <{$item_gifts.addon.adjname}>
					      	<{if $item_gifts.link_url}></a><{/if}>
							</dd>
							</dl>
				          </td>
				          <td style="border:none;" align="center"><{if $item_gifts.score}>-<{$item_gifts.score}><{else}>0<{/if}>&nbsp;</td>
				          <td class="Colamount" style="border:none;" align="center"><{$item_gifts.price|cur_odr:$order.currency}></td>
						  <td class="Colamount" style="border:none;" align="center"><{$item_gifts.quantity}></td>
						  <td class="Colamount" style="border:none;" align="center"><{$item_gifts.amount|cur_odr:$order.currency}></td>
        			</tr>
        		<{/foreach}>
				
        		
        	
	<{/if}>
	
	
	<{if $order.extends}>
		<{foreach from=$order.extends item=aExtend name="aExtends"}>
			<{foreach from=$aExtend item=item_extend name="extendItem"}>
				<tr>
					<td>
					<dl>
					<dt>
					<div class='product-list-img' isrc="<{$item_extend.thumbnail_pic|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{$item_extend.link_url}>' style='width:50px;height:50px; margin:0 auto'>
							<img src='<{$res_url}>/loading.gif'/>
						</div>
					</dt>
					<dd>
						<{if $item_extend.link_url}><a href="<{$item_extend.link_url}>" target="_blank"><{/if}>
								<{$item_extend.name}>
						<{if $item_extend.link_url}></a><{/if}>
						</dd>
						</dl>
					  </td>
					  <td style="border:none;" align="center"><{if $item_extend.score}>-<{$item_extend.score}><{else}>0<{/if}>&nbsp;</td>
					  <td class="Colamount" style="border:none;" align="center"><{$item_extend.price|cur_odr:$order.currency}></td>
					  <td class="Colamount" style="border:none;" align="center"><{$item_extend.quantity}></td>
					  <td class="Colamount" style="border:none;" align="center"><{$item_extend.amount|cur_odr:$order.currency}></td>
				</tr>
			<{/foreach}>
		<{/foreach}>
	<{/if}>

  </tbody>
</table>

<{if  count($order.order_pmt)>0 || count($order.gift)>0 || count($order.coupon_p)>0}>
    <div class="division" style="border-left:none;border-right:none">
  <table width="100%" cellpadding="0" cellspacing="0" class="tableform">
        <col class="span-4 ColColorGray"></col>
            <col class="span-auto"></col>

        <{if count($order.order_pmt)>0}>
      <tr>
        <th><{t}>享受的优惠：<{/t}></th>
                <td>
                     <ol>
            <{foreach from=$order.order_pmt item=item}>
            <li><{$item.pmt_describe}></li>
            <{/foreach}>
                    </ol>
        </td>
      </tr>
            <{/if}>
            <{if count($order.gifts)>0}>
            <tr>
              <th><{t}>获得赠品：<{/t}></th>
              <td>
              <ol>
              <{foreach from=$order.gifts item="item" key="key"}>
          <li><{$item.name}> <{$item.nums}><{t}> 件&nbsp;&nbsp;<{/t}></li>
        <{/foreach}>
                </ol>
                </td>
            </tr>
            <{/if}>
            <{if count($order.coupon_p)>0}>
            <tr>
              <th><{t}>获得优惠券：<{/t}></th>
              <td>
              <ol>
                  <{foreach from=$order.coupon_p item="item" key="key"}>
                  <li><{$item.pmt_memo}></li>
                  <{/foreach}>
              </ol></td>
            </tr>
            <{/if}>
  </table>
    </div>
    <{/if}>

<{/if}>

<{if $order.giftItems}>

  <h4><{t}>赠品<{/t}></h4>

<div class="division">
<table width="100%" cellpadding="3" cellspacing="0" class="liststyle data">
            <col class="span-auto"></col>
            <col class="span-2"></col>
            <col class="span-2"></col>
            <col class="span-2 ColColorOrange"></col>
    <thead>
      <tr>
        <th ><{t}>赠品名称<{/t}></th>
        <th><{t}>所需积分<{/t}></th>
        <th><{t}>数量<{/t}></th>
        <th><{t}>小计<{/t}></th>
      </tr>
    </thead>
    <tbody>
    <{foreach from=$order.giftItems item="item" key="key"}>
      <tr>
        <td><{$item.name}></td>
        <td><{$item.point}></td>
        <td><{$item.nums}></td>
        <td><{$item.amount}></td>
      </tr>
    <{/foreach}>
    </tbody>
</table>
</div>
<{/if}>
<h4 class="title-bg"><{t}>收货人信息<{/t}></h4>
<table width="100%" cellspacing="0" cellpadding="0" class="tableform">
  <tr>
    <th><{t}>收货人姓名:<{/t}></th>
    <td><{$order.consignee.name|escape:'html'}></td>
    <th ><{t}>收货人Mail:<{/t}></th>
    <td><{$order.consignee.email|escape:'html'}></td>
  </tr>
  <tr>
    <th><{t}>配送地区:<{/t}></th>
    <td><{$order.consignee.area|region}></td>
    <th><{t}>联系电话:<{/t}></th>
    <td><{$order.consignee.telephone}><{if $order.consignee.telephone && $order.consignee.mobile}> | <{/if}><{$order.consignee.mobile}></td>
  </tr>
  <tr>
    <th><{t}>收货人邮编:<{/t}></th>
    <td><{$order.consignee.zip|default:'-'|escape:'html'}></td>
    <th><{t}>要求送达时间:<{/t}></th>
    <td><{$order.consignee.r_time}></td>
  </tr>
  <tr>
    <th><{t}>配送方式:<{/t}></th>
    <td><{$order.shipping.shipping_name}></td>
    <th><{t}>付款方式:<{/t}></th>
    <td>
		<{$order.payinfo.pay_name}>
		&nbsp;
		<{foreach from=$order.extendCon item=item key=key}>
			<{$item}>&nbsp;&nbsp;
		<{/foreach}>
	</td>
  </tr>
  <!--
  <tr>
  <th><{t}>物流公司:<{/t}></th>
    <td><{$order.corp.name}></td>
    <th><{t}>公司网址:<{/t}></th>
    <td><a href='<{$order.corp.website}>' target='_blank'><{$order.corp.website}></a></td>
  </tr>  !-->
  <tr>
    <th><{t}>商品重量:<{/t}></th>
    <td><{$order.weight}> g</td>
    <th><{t}>支付币别:<{/t}></th>
    <td><{$order.currency|cur_name}></td>
  </tr>
  <tr>
    <th valign="top"><{t}>收货人地址:<{/t}></th>
    <td colspan="3" valign="top"><{$order.consignee.addr|escape:'html'}></td>
  </tr>
  <tr>
    <th valign="top"><{t}>订单附言:<{/t}></th>
    <td colspan="3" valign="top"><{$order.memo}></td>
  </tr>
</table>

</div>



<div>
<{include file="site/common/order_total.html" app=b2c}>
</div>

<script>
/*小图mouseenter效果*/
window.addEvent('domready',function(){

  var cart_product_img_viewer=new Element('div',{styles:{'position':'absolute','zIndex':500,'opacity':0,'border':'1px #666 solid'}}).inject(document.body);
  
  var cpiv_show=function(img,event){
       
      if(!img)return;
      cart_product_img_viewer.empty().adopt($(img).clone().removeProperties('width','height').setStyle('border','1px #fff solid')).fade(1);
      
      var size = window.getSize(), scroll = window.getScroll();
        var tip = {x: cart_product_img_viewer.offsetWidth, y: cart_product_img_viewer.offsetHeight};
        var props = {x: 'left', y: 'top'};
        for (var z in props){
            var pos = event.page[z] + 10;
            if ((pos + tip[z] - scroll[z]) > size[z]) pos = event.page[z] - 10 - tip[z];
            cart_product_img_viewer.setStyle(props[z], pos);
        }
  
  };
  
   $$('.FormWrap .product-list-img').each(function(i){
  
       new Asset.image(i.get('isrc'),{onload:function(img){
	   if(!img)return;
           var _img=img.zoomImg(50,50);
		     if(!_img)return;
           _img.setStyle('cursor','pointer').addEvents({
              'mouseenter':function(e){
                 cpiv_show(_img,e);
              },
              'mouseleave':function(e){
                cart_product_img_viewer.fade(0);
              }
           });
           i.empty().adopt(new Element('a',{href:i.get('ghref'),target:'_blank',styles:{border:0}}).adopt(_img));                 
       },onerror:function(){
            i.empty();
		
       }});
   
   });

});
</script>